package com.jxbeidou.login.config;

import com.jxbeidou.core.crypto.pwd.JxbeidouPasswordEncoder;
import com.jxbeidou.core.ip2region.config.Ip2RegionBean;
import com.jxbeidou.core.ip2region.config.Ip2RegionBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.crypto.password.PasswordEncoder;

/**
 * @program: jxbeidou-basic
 * @ClassName: LoginConfig
 * @description: 用户登录模块配置
 * @author: 杜晓祥
 * @create: 2023-12-26 16:07
 * 版权所有：交信北斗(北京)信息科技有些公司
 */
@Configuration
public class LoginConfig {

    @Bean
    public PasswordEncoder passwordEncoder () {
        return new JxbeidouPasswordEncoder();
    }


    @Bean
    public Ip2RegionBean ip2RegionBean () {
        return Ip2RegionBuilder.defaultClassPath();
    }

}
